<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let row = +prompt('请输入行数')
        let col = +prompt('请输入列数')
        for (let i = 0; i < row; i++){
            document.write('<br>')
            for (let j = 0; j < col; j++){
                document.write('*')
            }
        }
    </script>
</body>
</html>